package oop2;

/**
 * @author oldliu
 * @since 1.0
 */
public class Zhazhiji {
    String brand = "美的";
    int watt;//功率
    int price;//价格

    //String fruit;//要榨汁的水果
    public void show() {
        System.out.println("这个榨汁机是" + brand + ",功率是" + watt + ",价格是" + price + "元");
    }

    //榨汁
    public String makeJuice(String fruit) {
        System.out.println("刀片开始高速转动");
        System.out.println("切割了" + fruit + ",切成泥，出了汁水");
        return fruit + "汁";
    }
    //两种水果榨汁，多个参数用，隔开
    public String makeJuice2(String fruit,String f2) {
        System.out.println("刀片开始高速转动");
        System.out.println("切割了" + fruit +"和"+f2+ "切成泥，出了汁水");
        return fruit+f2 + "汁";
    }
}
